<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php 
    echo $this->headMeta()."\n";
    echo $this->headTitle()."\n";
    echo $this->headLink()->appendStylesheet($this->baseUrl().'/theme/library/default/easyui.css')
    	->appendStylesheet($this->baseUrl().'/theme/manager/default/css/styles.css')
    	->appendStylesheet($this->baseUrl().'/theme/library/icon.css')."\n";
    
    $this->headScript()->appendFile($this->baseUrl().'/js/library/jquery-1.7.2.min.js')
    	->appendFile($this->baseUrl().'/js/library/jquery.easyui.min.js')
    	->appendFile($this->baseUrl().'/js/library/locale/easyui-lang-zh_CN.js')
    	->appendFile($this->baseUrl().'/js/common.js');
    
    if(isset($this->controller))
    	$this->headScript()->appendFile($this->baseUrl().'/js/'.$this->controller.'/common.js');
    
    $this->headScript()->appendScript('var baseUrl = "'.$this->baseUrl().'"');
    
    echo $this->headScript();
    ?>
</head>

<body>
	<div class="main">
		<?php echo $this->render('navigate.phtml'); ?>
		<div class="content"><?php echo $this->layout()->content ?></div>
		<?php echo $this->render('footer.phtml'); ?>
	</div>
</body>
</html>